package org.insia.smartposse.metier;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import org.insia.smartposse.metier.webservice.LightSkillCategory;


/**
 * Business class for a skill category.
 * 
 * @author sok hout
 *
 */
public class SkillCategory 
implements Serializable  {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2835373480418523257L;
	private long _id = -1L;
	private String _label;
	private int _level = 0;
	private Set<Skill> _skillSet = new HashSet<Skill>();
	
	/**
	 * Empty constructor.
	 *
	 */
	public SkillCategory() {		
	}
	
	/**
	 * Getter for the id.
	 * @return
	 */
	public long getId() {
		return _id;
	}
	/**
	 * Setter for the id.
	 * @param id the id to set.
	 */
	public void setId(long id) {
		this._id = id;
	}
	/**
	 * Getter for the label.
	 * @return the label.
	 */
	public String getLabel() {
		return _label;
	}
	/**
	 * Setter for the label.
	 * @param label the label to set.
	 */
	public void setLabel(String label) {
		this._label = label;
	}
	/**
	 * @return the _level
	 */
	public int getLevel() {
		return _level;
	}

	/**
	 * @param _level the _level to set
	 */
	public void setLevel(int level) {
		this._level = level;
	}

	/**
	 * @return the skillSet
	 */
	public Set<Skill> getSkillSet() {
		return _skillSet;
	}

	/**
	 * @param skillSet the skillSet to set
	 */
	public void setSkillSet(Set<Skill> skillSet) {
		this._skillSet = skillSet;
	}
	/**
	 * 
	 * @return lcatet the webservice SkillCategory representation
	 */
	public LightSkillCategory setLight() {
		LightSkillCategory lscate = new LightSkillCategory(this);
		return lscate;
	}
}
